package com.github.icloudpay.crm.core.mapper;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.github.icloudpay.crm.core.entity.Consumer;

import tk.mybatis.mapper.common.Mapper;

/**
 * 注册客户（会员）信息表
 * 
 * @author centerroot
 * @email lfw6699@163.com
 * @date 2018-05-25 15:20:48
 */
@org.apache.ibatis.annotations.Mapper
public interface ConsumerMapper extends Mapper<Consumer> {
	Consumer queryUserinfoByMobile(@Param(value="mobile") String mobile);
	
	
	/**
	 * 查询会员列表
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> queryMemberList(Map<String, Object> map);
	
	/**
	 * 查看会员信息
	 * @param map
	 * @return
	 */
	Map<String, Object> queryMemberInfo(Map<String, Object> map);
	
	/**
	 * 更改账户状态
	 * @param map
	 */
	void updateAccountStatus(Map<String, Object> map);
	
	/**
	 * 实名认证记录
	 * @return
	 */
	List<Map<String, Object>> queryRealNameRecord();
	
	/**
	 * 修改实名状态
	 * @param map
	 */
	void updateVerifyFlag(Map<String, Object> map);
	
}
